home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-06-28 | 464 b | 30 lines | [TEXT/CWIE] |
- // Repeater.h
-
- #ifndef Repeater_h
- #define Repeater_h
-
- #ifndef Enableable_h
- #include "Enableable.h"
- #endif
- #ifndef PostponableMethod_h
- #include "PostponableMethod.h"
- #endif
-
- class Repeater: public Enableable
- {
- private:
- const Method& toRepeat;
- PostponableMethod< Repeater > repeat;
- bool inProgress;
-
- void Repeat();
-
- virtual void BeEnabled();
- virtual void BeDisabled();
-
- public:
- Repeater( const Method&, bool startEnabled = true );
- };
-
- #endif
-